#include "mutations.hh"
#include "constants.hh"
using namespace std;

namespace evolution {

    default_random_engine generator { static_cast<long unsigned int>(time(0u)) };

    uniform_real_distribution<float> random_weight_distribution{ WEIGHT_MIN, WEIGHT_MAX };
    uniform_int_distribution<int> random_node_type_distribution{ 0, NODE_TYPES };

    uniform_real_distribution<float> random_probability{ 0.0f, 1.0f };

    bool with_probability (float p) {
        return random_probability(generator) < p;
    }

}
